rm *.o > /dev/null &> /dev/null
#rm *.c > /dev/null &> /dev/null
rm ../*.so > /dev/null &> /dev/null
# compile ckd3
echo 'compiling ckd3'
cython ckd3.pyx &&\
gcc -O3 -fPIC -I/usr/include/python2.5/ -I/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ -c -o ckd3.o ckd3.c &&\
gcc -shared ckd3.o -o ../ckd3.so
# compile ckd3_test
echo 'compiling ckd3_test'
cython ckd3_test.pyx &&\
gcc -O3 -fPIC -I/usr/include/python2.5/ -I/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ -c -o ckd3_test.o ckd3_test.c &&\
gcc -shared ckd3_test.o -o ../ckd3_test.so
#python ../ckd3_test.py
echo 'compiling asa'
cython asa.pyx &&\
gcc -O3 -fPIC -I/usr/include/python2.5/ -I/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ -c -o asa.o asa.c &&\
gcc -shared asa.o -o ../asa.so
echo 'compiling contact'
cython contact.pyx &&\
gcc -O3 -fPIC -I/usr/include/python2.5/ -I/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ -c -o contact.o contact.c &&\
gcc -shared contact.o -o ../contact.so
rm *.o > /dev/null &> /dev/null
#rm *.c > /dev/null &> /dev/null
